<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        
         <?php
           include_once './Data/MySql.php';
           include_once './Data/NoticiaData.php';
           include_once './Data/RecursosData.php';
           include_once './Common/Entity/Noticia.php';
           include_once './Common/Entity/Imagen.php';
           
              $noticiaData = new NoticiaData();
              $recursosData = new RecursosData();
              $noticia= new Noticia();
              $imagen= new Imagen();
              $db = new MySql();
              
              $noticia= $noticiaData->GetNoticia($_GET['noticia']);
              $imagen=$recursosData->GetImagen($noticia->getImagen());
        ?>
           
        <img src="<?= $imagen->getURL() ?>" width="300" height="250" alt="Descripcion"/>
        <p><?= $noticia->getTitulo() ?></p><br/>
        <p><?= $noticia->getDescripcion() ?></p>

       
        
    </body>
</html>
